import Vue from 'vue'
import Vuex from 'vuex'
import state from "./state";
import actions from "./actions";
import mutations from "./mutations";
import getters from "./getters";
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)



const store = new Vuex.Store({
    plugins: [createPersistedState(
      {
        // storage: window.sessionStorage
      }
    )],
    state : {
        ...state
    },
    mutations : {
        ...mutations
    },
    actions : {
        ...actions
    },
    getters : {
        ...getters
    }
})
export default store
